package cn.zou.blog.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.zou.blog.dao.TDao;
import cn.zou.blog.entry.Person;
import cn.zou.blog.service.TService;

@Service(value="tService")
@Transactional
public class TServiceImpl implements TService {
	@Autowired
	private TDao tDao;
	public void add(Person person) {
		// TODO 自动生成的方法存根
		tDao.add(person);
		int i=10/0;
		
	}

	public void say() {
		System.out.print("测试Spring成功");
		
	}
	
}
